home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-07-05 | 2.1 KB | 94 lines |
- # Makefile for demo programs
-
- # Mesa 3-D graphics library
- # Version: 1.1 beta
- # Copyright (C) 1995 Brian Paul (brianp@ssec.wisc.edu)
- #
- # This library is free software; you can redistribute it and/or
- # modify it under the terms of the GNU Library General Public
- # License as published by the Free Software Foundation; either
- # version 2 of the License, or (at your option) any later version.
- #
- # This library is distributed in the hope that it will be useful,
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- # Library General Public License for more details.
- #
- # You should have received a copy of the GNU Library General Public
- # License along with this library; if not, write to the Free
- # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
- # $Id: Makefile,v 1.7 1995/05/01 15:25:20 brianp Exp brianp $
-
- # $Log: Makefile,v $
- # Revision 1.7 1995/05/01 15:25:20 brianp
- # clean up and reorganize
- #
- # Revision 1.6 1995/04/20 13:39:05 brianp
- # added glxdemo, glxpixmap
- # removed accum, prim, stencil
- #
- # Revision 1.5 1995/03/07 14:27:01 brianp
- # added realclean target
- #
- # Revision 1.4 1995/03/01 21:08:51 brianp
- # replaced 'make' with $(MAKE)
- #
- # Revision 1.3 1995/02/24 16:48:44 brianp
- # fixed netbsd CFLAGS
- #
- # Revision 1.2 1995/02/24 16:26:26 brianp
- # added netbsd target
- #
- # Revision 1.1 1995/02/24 16:23:53 brianp
- # Initial revision
- #
-
-
- ##### MACROS #####
-
- DESTDIR = /usr/skunk
-
- INCDIR = ../include
-
- GL_LIBS = -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
-
- LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
-
- PROGS = bounce glxdemo glxpixmap isosurf spin test0 wave xdemo
-
-
-
- ##### RULES #####
-
- .SUFFIXES:
- .SUFFIXES: .c
-
- .c: $(LIB_DEP)
- $(CC) $(CFLAGS) $< $(GL_LIBS) -o $@
-
-
-
- ##### TARGETS #####
-
- default:
- @echo "Specify a target configuration"
-
- clean:
- -rm *.o *~
-
- realclean:
- -rm $(PROGS)
- -rm *.o *~
-
- targets: $(PROGS)
-
- install: $(PROGS)
- -mkdir -p $(DESTDIR)/lib/Mesa/demos
- -cp $(PROGS) $(DESTDIR)/lib/Mesa/demos
-
-
- include ../Make-config
-
-